#include "DataCollect.h"
#include "DataConvert.h"
#include "DataSave.h"

int DataCollectThread(void* pVoid);
int DataConvertThread(void* pVoid);

#define T_COUNT 2
HANDLE hThread[T_COUNT] = {0};

int wmain(int argc, wchar_t* argv[])
{	
	hThread[0] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)DataCollectThread, NULL, 0, NULL);
	
	hThread[1] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)DataConvertThread, NULL, 0, NULL);
	WaitForMultipleObjects(T_COUNT, hThread, true, INFINITE);

	return 1;
}

int DataCollectThread(void* pVoid)
{
	CDataCollect myDc;
	myDc.Run();

	return 1;
}

int DataConvertThread(void* pVoid)
{
	CDataConvert myDc;
	myDc.Run();

	return 1;
}